Component({
  behaviors: [],
  properties: {

  },
    /**
   * 组件的初始数据
   */
    data: {
      selected: 0,
      color: "#afafaf",
      selectedColor: "#0099f6",
      backgroundColor: "#F7F8F8",
      list: [
        {
          pagePath: "/pages/index/index",
          iconPath: "../../image/icon/298今.png",
          selectedIconPath: "../../image/icon/298今.png",
          
        },
        
        {
          pagePath: "/pages/home/index",
          bulge:true,
          iconPath: "../../image/icon/阴阳-太极02.png",
          selectedIconPath: "../../image/icon/阴阳-太极02.png",
         
        },
        
        {
          pagePath: "/pages/demo/index",
          iconPath: "../../image/icon/299心.png",
          selectedIconPath: "../../image/icon/299心.png",
        
        },
      ]
    },
      /**
     * 组件的方法列表
     */
    methods: {
      switchTab(e) {
        // console.log(e);
        const data = e.currentTarget.dataset;
        const url = data.path;
        wx.switchTab({url})
      }
    }
  
});